package com.dynamixsoftware.printershare.smb;

import com.dynamixsoftware.printershare.smb.util.Dumper;

class Trans2FindFirst2
  extends SmbComTransaction
{
  private static final int DEFAULT_LIST_COUNT = 200;
  private static final int DEFAULT_LIST_SIZE = 65535;
  static final int LIST_COUNT = 200;
  static final int LIST_SIZE = 65535;
  static final int SMB_FILE_BOTH_DIRECTORY_INFO = 260;
  private int flags;
  private int informationLevel;
  private int searchAttributes;
  private int searchStorageType = 0;
  private String wildcard;
  
  Trans2FindFirst2(String paramString1, String paramString2, int paramInt)
  {
    if (paramString1.equals("\\")) {}
    for (this.path = paramString1;; this.path = (paramString1 + "\\"))
    {
      this.wildcard = paramString2;
      this.searchAttributes = (paramInt & 0x37);
      this.command = 50;
      this.subCommand = 1;
      this.flags = 0;
      this.informationLevel = 260;
      this.totalDataCount = 0;
      this.maxParameterCount = 10;
      this.maxDataCount = 65535;
      this.maxSetupCount = 0;
      return;
    }
  }
  
  int readDataWireFormat(byte[] paramArrayOfByte, int paramInt1, int paramInt2)
  {
    return 0;
  }
  
  int readParametersWireFormat(byte[] paramArrayOfByte, int paramInt1, int paramInt2)
  {
    return 0;
  }
  
  int readSetupWireFormat(byte[] paramArrayOfByte, int paramInt1, int paramInt2)
  {
    return 0;
  }
  
  public String toString()
  {
    return new String("Trans2FindFirst2[" + super.toString() + ",searchAttributes=0x" + Dumper.toHexString(this.searchAttributes, 2) + ",searchCount=" + 200 + ",flags=0x" + Dumper.toHexString(this.flags, 2) + ",informationLevel=0x" + Dumper.toHexString(this.informationLevel, 3) + ",searchStorageType=" + this.searchStorageType + ",filename=" + this.path + "]");
  }
  
  int writeDataWireFormat(byte[] paramArrayOfByte, int paramInt)
  {
    return 0;
  }
  
  int writeParametersWireFormat(byte[] paramArrayOfByte, int paramInt)
  {
    writeInt2(this.searchAttributes, paramArrayOfByte, paramInt);
    int i = paramInt + 2;
    writeInt2(200L, paramArrayOfByte, i);
    int j = i + 2;
    writeInt2(this.flags, paramArrayOfByte, j);
    int k = j + 2;
    writeInt2(this.informationLevel, paramArrayOfByte, k);
    int m = k + 2;
    writeInt4(this.searchStorageType, paramArrayOfByte, m);
    int n = m + 4;
    return n + writeString(this.path + this.wildcard, paramArrayOfByte, n) - paramInt;
  }
  
  int writeSetupWireFormat(byte[] paramArrayOfByte, int paramInt)
  {
    int i = paramInt + 1;
    paramArrayOfByte[paramInt] = this.subCommand;
    (i + 1);
    paramArrayOfByte[i] = 0;
    return 2;
  }
}


/* Location:           C:\Users\Admin\Desktop\Decompiler\JAD\jd-gui-0.3.6.windows\classes_dex2jar.jar
 * Qualified Name:     com.dynamixsoftware.printershare.smb.Trans2FindFirst2
 * JD-Core Version:    0.7.0.1
 */